import Vue from 'vue'

//1.1 导入路由的包
import VueRouter from 'vue-router'
//1.2 安装路由
Vue.use(VueRouter)
//2.1 导入 vue-resource
import VueResource from 'vue-resource'
//2.2 安装
Vue.use(VueResource)
//导入mui的样式
import './lib/mui/css/mui.min.css'

 //引入Mint-ui
import { Header } from 'mint-ui'
//按需导入组件包
Vue.component(Header.name, Header)



import router from './router.js'
//主程序插件
import app from './App.vue'

var vm = new Vue({
    el: '#app',
    render: c => c(app),
    router  //挂载路由对象到vm实例上

})